﻿using System;

namespace Microsoft.Xna.Framework.Content
{
	/// <summary>
	/// Exception used to report errors from the ContentManager.Load method.
	/// </summary>
    [Serializable]
    public class ContentLoadException : Exception
    {
		/// <summary>
		/// Creates a new instance of ContentLoadException.
		/// </summary>
        public ContentLoadException()
            : base()
        {
        }

		/// <summary>
		/// Creates a new instance of ContentLoadException.
		/// </summary>
		/// <param name="message">A message that describes the error.</param>
        public ContentLoadException(string message)
            : base(message)
        {
        }

		/// <summary>
		/// Creates a new instance of ContentLoadException.
		/// </summary>
		/// <param name="message">A message that describes the error.</param>
		/// <param name="innerException">The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.</param>
        public ContentLoadException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
